package com.github.springcloud.order.client.Hystrix;

import com.github.springcloud.good.dto.CreateGoodDto;
import com.github.springcloud.good.vo.GoodVo;
import com.github.springcloud.order.client.GoodClient;
import org.springframework.stereotype.Component;

/**
 * Created by zhaozuowen on 2018/7/12.
 */
@Component
public class GoodClientHystrix implements GoodClient {
    @Override
    public GoodVo getByGoodNo(String goodNo) {
        return new GoodVo();
    }

    @Override
    public void createGood(CreateGoodDto createGoodDto) {
        throw new RuntimeException("超时");
    }
}
